import {request} from "../../request";

export function userLogin(data) {
  return request({
    url: 'login/user/login',
    method: 'post',
    data: data,
    headers: {
      "Content-Type":"application/json"
    },
  })
}

export function captcha() {
  return request({
    url: '/login/captcha',
    method: 'get'
  })
}

export function register(data) {
  return request({
    url: 'login/user/register',
    method: 'post',
    params: data
  })
}
